package com.crm.model.entity.customerManager;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DemandResearchExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DemandResearchExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDemandResearchIdIsNull() {
            addCriterion("demand_research_id is null");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdIsNotNull() {
            addCriterion("demand_research_id is not null");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdEqualTo(String value) {
            addCriterion("demand_research_id =", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdNotEqualTo(String value) {
            addCriterion("demand_research_id <>", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdGreaterThan(String value) {
            addCriterion("demand_research_id >", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdGreaterThanOrEqualTo(String value) {
            addCriterion("demand_research_id >=", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdLessThan(String value) {
            addCriterion("demand_research_id <", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdLessThanOrEqualTo(String value) {
            addCriterion("demand_research_id <=", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdLike(String value) {
            addCriterion("demand_research_id like", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdNotLike(String value) {
            addCriterion("demand_research_id not like", value, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdIn(List<String> values) {
            addCriterion("demand_research_id in", values, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdNotIn(List<String> values) {
            addCriterion("demand_research_id not in", values, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdBetween(String value1, String value2) {
            addCriterion("demand_research_id between", value1, value2, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDemandResearchIdNotBetween(String value1, String value2) {
            addCriterion("demand_research_id not between", value1, value2, "demandResearchId");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameIsNull() {
            addCriterion("decision_maker_name is null");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameIsNotNull() {
            addCriterion("decision_maker_name is not null");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameEqualTo(String value) {
            addCriterion("decision_maker_name =", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameNotEqualTo(String value) {
            addCriterion("decision_maker_name <>", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameGreaterThan(String value) {
            addCriterion("decision_maker_name >", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameGreaterThanOrEqualTo(String value) {
            addCriterion("decision_maker_name >=", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameLessThan(String value) {
            addCriterion("decision_maker_name <", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameLessThanOrEqualTo(String value) {
            addCriterion("decision_maker_name <=", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameLike(String value) {
            addCriterion("decision_maker_name like", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameNotLike(String value) {
            addCriterion("decision_maker_name not like", value, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameIn(List<String> values) {
            addCriterion("decision_maker_name in", values, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameNotIn(List<String> values) {
            addCriterion("decision_maker_name not in", values, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameBetween(String value1, String value2) {
            addCriterion("decision_maker_name between", value1, value2, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerNameNotBetween(String value1, String value2) {
            addCriterion("decision_maker_name not between", value1, value2, "decisionMakerName");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationIsNull() {
            addCriterion("dm_contact_information is null");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationIsNotNull() {
            addCriterion("dm_contact_information is not null");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationEqualTo(String value) {
            addCriterion("dm_contact_information =", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationNotEqualTo(String value) {
            addCriterion("dm_contact_information <>", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationGreaterThan(String value) {
            addCriterion("dm_contact_information >", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationGreaterThanOrEqualTo(String value) {
            addCriterion("dm_contact_information >=", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationLessThan(String value) {
            addCriterion("dm_contact_information <", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationLessThanOrEqualTo(String value) {
            addCriterion("dm_contact_information <=", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationLike(String value) {
            addCriterion("dm_contact_information like", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationNotLike(String value) {
            addCriterion("dm_contact_information not like", value, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationIn(List<String> values) {
            addCriterion("dm_contact_information in", values, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationNotIn(List<String> values) {
            addCriterion("dm_contact_information not in", values, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationBetween(String value1, String value2) {
            addCriterion("dm_contact_information between", value1, value2, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andDmContactInformationNotBetween(String value1, String value2) {
            addCriterion("dm_contact_information not between", value1, value2, "dmContactInformation");
            return (Criteria) this;
        }

        public Criteria andBudgetIsNull() {
            addCriterion("budget is null");
            return (Criteria) this;
        }

        public Criteria andBudgetIsNotNull() {
            addCriterion("budget is not null");
            return (Criteria) this;
        }

        public Criteria andBudgetEqualTo(String value) {
            addCriterion("budget =", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetNotEqualTo(String value) {
            addCriterion("budget <>", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetGreaterThan(String value) {
            addCriterion("budget >", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetGreaterThanOrEqualTo(String value) {
            addCriterion("budget >=", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetLessThan(String value) {
            addCriterion("budget <", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetLessThanOrEqualTo(String value) {
            addCriterion("budget <=", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetLike(String value) {
            addCriterion("budget like", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetNotLike(String value) {
            addCriterion("budget not like", value, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetIn(List<String> values) {
            addCriterion("budget in", values, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetNotIn(List<String> values) {
            addCriterion("budget not in", values, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetBetween(String value1, String value2) {
            addCriterion("budget between", value1, value2, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetNotBetween(String value1, String value2) {
            addCriterion("budget not between", value1, value2, "budget");
            return (Criteria) this;
        }

        public Criteria andBudgetTmIsNull() {
            addCriterion("budget_tm is null");
            return (Criteria) this;
        }

        public Criteria andBudgetTmIsNotNull() {
            addCriterion("budget_tm is not null");
            return (Criteria) this;
        }

        public Criteria andBudgetTmEqualTo(Date value) {
            addCriterion("budget_tm =", value, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmNotEqualTo(Date value) {
            addCriterion("budget_tm <>", value, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmGreaterThan(Date value) {
            addCriterion("budget_tm >", value, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmGreaterThanOrEqualTo(Date value) {
            addCriterion("budget_tm >=", value, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmLessThan(Date value) {
            addCriterion("budget_tm <", value, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmLessThanOrEqualTo(Date value) {
            addCriterion("budget_tm <=", value, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmIn(List<Date> values) {
            addCriterion("budget_tm in", values, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmNotIn(List<Date> values) {
            addCriterion("budget_tm not in", values, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmBetween(Date value1, Date value2) {
            addCriterion("budget_tm between", value1, value2, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andBudgetTmNotBetween(Date value1, Date value2) {
            addCriterion("budget_tm not between", value1, value2, "budgetTm");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionIsNull() {
            addCriterion("decision_maker_position is null");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionIsNotNull() {
            addCriterion("decision_maker_position is not null");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionEqualTo(String value) {
            addCriterion("decision_maker_position =", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionNotEqualTo(String value) {
            addCriterion("decision_maker_position <>", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionGreaterThan(String value) {
            addCriterion("decision_maker_position >", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionGreaterThanOrEqualTo(String value) {
            addCriterion("decision_maker_position >=", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionLessThan(String value) {
            addCriterion("decision_maker_position <", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionLessThanOrEqualTo(String value) {
            addCriterion("decision_maker_position <=", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionLike(String value) {
            addCriterion("decision_maker_position like", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionNotLike(String value) {
            addCriterion("decision_maker_position not like", value, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionIn(List<String> values) {
            addCriterion("decision_maker_position in", values, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionNotIn(List<String> values) {
            addCriterion("decision_maker_position not in", values, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionBetween(String value1, String value2) {
            addCriterion("decision_maker_position between", value1, value2, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerPositionNotBetween(String value1, String value2) {
            addCriterion("decision_maker_position not between", value1, value2, "decisionMakerPosition");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionIsNull() {
            addCriterion("decision_maker_intention is null");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionIsNotNull() {
            addCriterion("decision_maker_intention is not null");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionEqualTo(String value) {
            addCriterion("decision_maker_intention =", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionNotEqualTo(String value) {
            addCriterion("decision_maker_intention <>", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionGreaterThan(String value) {
            addCriterion("decision_maker_intention >", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionGreaterThanOrEqualTo(String value) {
            addCriterion("decision_maker_intention >=", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionLessThan(String value) {
            addCriterion("decision_maker_intention <", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionLessThanOrEqualTo(String value) {
            addCriterion("decision_maker_intention <=", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionLike(String value) {
            addCriterion("decision_maker_intention like", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionNotLike(String value) {
            addCriterion("decision_maker_intention not like", value, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionIn(List<String> values) {
            addCriterion("decision_maker_intention in", values, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionNotIn(List<String> values) {
            addCriterion("decision_maker_intention not in", values, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionBetween(String value1, String value2) {
            addCriterion("decision_maker_intention between", value1, value2, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDecisionMakerIntentionNotBetween(String value1, String value2) {
            addCriterion("decision_maker_intention not between", value1, value2, "decisionMakerIntention");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameIsNull() {
            addCriterion("demand_contact_name is null");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameIsNotNull() {
            addCriterion("demand_contact_name is not null");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameEqualTo(String value) {
            addCriterion("demand_contact_name =", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameNotEqualTo(String value) {
            addCriterion("demand_contact_name <>", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameGreaterThan(String value) {
            addCriterion("demand_contact_name >", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameGreaterThanOrEqualTo(String value) {
            addCriterion("demand_contact_name >=", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameLessThan(String value) {
            addCriterion("demand_contact_name <", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameLessThanOrEqualTo(String value) {
            addCriterion("demand_contact_name <=", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameLike(String value) {
            addCriterion("demand_contact_name like", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameNotLike(String value) {
            addCriterion("demand_contact_name not like", value, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameIn(List<String> values) {
            addCriterion("demand_contact_name in", values, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameNotIn(List<String> values) {
            addCriterion("demand_contact_name not in", values, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameBetween(String value1, String value2) {
            addCriterion("demand_contact_name between", value1, value2, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactNameNotBetween(String value1, String value2) {
            addCriterion("demand_contact_name not between", value1, value2, "demandContactName");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationIsNull() {
            addCriterion("demand_contact_information is null");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationIsNotNull() {
            addCriterion("demand_contact_information is not null");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationEqualTo(String value) {
            addCriterion("demand_contact_information =", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationNotEqualTo(String value) {
            addCriterion("demand_contact_information <>", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationGreaterThan(String value) {
            addCriterion("demand_contact_information >", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationGreaterThanOrEqualTo(String value) {
            addCriterion("demand_contact_information >=", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationLessThan(String value) {
            addCriterion("demand_contact_information <", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationLessThanOrEqualTo(String value) {
            addCriterion("demand_contact_information <=", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationLike(String value) {
            addCriterion("demand_contact_information like", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationNotLike(String value) {
            addCriterion("demand_contact_information not like", value, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationIn(List<String> values) {
            addCriterion("demand_contact_information in", values, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationNotIn(List<String> values) {
            addCriterion("demand_contact_information not in", values, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationBetween(String value1, String value2) {
            addCriterion("demand_contact_information between", value1, value2, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andDemandContactInformationNotBetween(String value1, String value2) {
            addCriterion("demand_contact_information not between", value1, value2, "demandContactInformation");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(String value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(String value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(String value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(String value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(String value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLike(String value) {
            addCriterion("customer_id like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotLike(String value) {
            addCriterion("customer_id not like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<String> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<String> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(String value1, String value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(String value1, String value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdIsNull() {
            addCriterion("opportunity_id is null");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdIsNotNull() {
            addCriterion("opportunity_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdEqualTo(String value) {
            addCriterion("opportunity_id =", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotEqualTo(String value) {
            addCriterion("opportunity_id <>", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdGreaterThan(String value) {
            addCriterion("opportunity_id >", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdGreaterThanOrEqualTo(String value) {
            addCriterion("opportunity_id >=", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdLessThan(String value) {
            addCriterion("opportunity_id <", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdLessThanOrEqualTo(String value) {
            addCriterion("opportunity_id <=", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdLike(String value) {
            addCriterion("opportunity_id like", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotLike(String value) {
            addCriterion("opportunity_id not like", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdIn(List<String> values) {
            addCriterion("opportunity_id in", values, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotIn(List<String> values) {
            addCriterion("opportunity_id not in", values, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdBetween(String value1, String value2) {
            addCriterion("opportunity_id between", value1, value2, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotBetween(String value1, String value2) {
            addCriterion("opportunity_id not between", value1, value2, "opportunityId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}